# import math
import random as ra
# from math import sqrt
from math import *
import demo_10

# PI = math.pi
PI = pi  # 导入模块的所有内容后不需要定义PI = math.pi，直接拿到pi就用，此处写PI = pi是因为下面用了多处，不方便改
def circle_area(r):
    global PI
    return PI * r * r
# area = circle_area(3)
# print(area)

def random_circle_area():
    r = ra.randint(1,100)  # 随机给一个圆的半径
    print(r)
    global PI
    return PI * r ** 2
# area = random_circle_area()
# print(area)

def sq(x):
    x *= 3
    return sqrt(x)
# res = sq(2)
# print(res)

# res1 = demo_10.fun2(2,8)
# print(res1)
demo_10.fun_test_01()